package com.cqie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 处方信息
 * </p>
 *
 * @author 不吃海鲜
 * @since 2024-12-26
 */
@Getter
@Setter
@TableName("prescription_info")
@ApiModel(value = "PrescriptionInfo对象", description = "处方信息")
public class PrescriptionInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("处方id")
    @TableId(value = "prescription_id",type = IdType.AUTO)
    private Integer prescriptionId;

    @ApiModelProperty("处方编码")
    @TableField("prescription_code")
    private String prescriptionCode;

    @ApiModelProperty("病历号")
    @TableField("case_code")
    private String caseCode;

    @ApiModelProperty("患者id")
    @TableField("patient_id")
    private Integer patientId;

    @ApiModelProperty("患者姓名")
    @TableField("patient_name")
    private String patientName;


    @ApiModelProperty("处方金额")
    @TableField("total_money")
    private double totalMoney;

    @ApiModelProperty("选择药品消息")
    @TableField("choose_drug")
    private String chooseDrug;

    @ApiModelProperty("是否支付(0-未支付 1-已支付)")
    @TableField("is_pay")
    private String isPay;

    @ApiModelProperty("主治医生id")
    @TableField("doctor_id")
    private Integer doctorId;

    @ApiModelProperty("主治医生姓名")
    @TableField("doctor_name")
    private String doctorName;

    @ApiModelProperty("主治医生所属科室")
    @TableField("department_name")
    private String departmentName;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("作废标志")
    @TableField("rm_sign")
    private String rmSign;
}
